Make sure that mass delete is enabled

Add in check for mass delete being enabled to use the function.