I think the constract of this function is to remove a file in some way, whether in background or in foreground. This patch makes sure that it removes a given file.