Generic view to delete objects