Created the functionality and tests for DELETING posts