tied template to the cloud file delete function