Implementation of the delete action along with unit tests (tests pass but did not test with the frontend)