def METHOD_NAME(context, data_dict):
    _check_access('package_delete', context, data_dict)
    model = context['model']
    id = _get_or_bust(data_dict, 'id')
    pkg = model.Package.get(id)
    _get_action('package_delete')(context, {'id': id})
    if pkg and pkg.resources:
        for r in pkg.resources:
            file_remove(r.id, r.url, r.url_type)
    return dataset_purge(context, data_dict)