Finished off delete logic