removing unused code
only delete remote objects if remote storage is enabled