Allows the 'publish' finction to delete draft post