Update categories.php

add delete() function for #31039 (Thanks Julien Celle)

http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_id=8103&tracker_item_id=31039
Merge pull request #1203 from zero-24/patch-14

Update categories.php