Your path is incorrect
Use the following
NSString *str= [outputFieldURL path];
in place of
NSString *str= [outputFieldURL absoluteString];
The method "removeItemAtPath:" need the local path of file, If you want to remove using url, you should use "removeItemAtURL:"