

@access.user
@loadmodel(model='item', level=AccessType.WRITE)
@describeRoute(Description('Delete an item by ID.').param('id', 'The ID of the item.', paramType='path').errorResponse('ID was invalid.').errorResponse('Write access was denied for the item.', 403))
def deleteItem(self, item, params):
    self.model('item').remove(item)
    return {
        'message': ('Deleted item %s.' % item['name']),
    }

dataset/ETHPy150Open girder/girder/girder/api/v1/item.py Item.deleteItem/original