Updated the delete method in selfies and dtoprovider