<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def destroy(self, request, project, pk=None):
 """ Delete a note entry """

        try:
            note = JobNote.objects.get(id=pk)
            note.delete()
            return Response({"message": "Note deleted"})
        except JobNote.DoesNotExist:
            return Response("No note with id: {0}".format(pk),
                            status=HTTP_404_NOT_FOUND)