Implement delete functiono