implemented delete method and support for items from local files