public static func removeIndex(indexName: String) -> Int? {

        //create the error variable
        var error: Int? = nil