<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def delete_action(action_id):
 """Delete action."""

    action = get_data_or_404('action', action_id)
    project = get_data_or_404('project', action['project_id'])

    if project['owner_id'] != get_current_user_id():
        return jsonify(message='forbidden'), 403

    delete_instance('sender', action['id'])

    return jsonify({})