Delete function now working in CMS