'DELETE /api/user/v1/preferences/{username}/{preference_key}'

def delete(self, request, username, preference_key):

    try:
        preference_existed = delete_user_preference(request.user, preference_key, username=username)
    except UserNotAuthorized:
        return Response(status=status.HTTP_403_FORBIDDEN)
    except UserNotFound:
        return Response(status=status.HTTP_404_NOT_FOUND)
    except PreferenceUpdateError as error:
        return Response({'developer_message': error.developer_message, 'user_message': error.user_message}, status=status.HTTP_400_BAD_REQUEST)
    if (not preference_existed):
        return Response(status=status.HTTP_404_NOT_FOUND)
    return Response(status=status.HTTP_204_NO_CONTENT)
