<!DOCTYPE html>
<md-button class="md-raised md-warn"
    ng-show="security.isAuthorized('delete', resource.path)"
    ng-click="confirmDelete()"
    ng-disabled="deleting || saving"><md-icon>delete</md-icon> Delete</md-button>

<!DOCTYPE html>
<md-button class="md-raised md-warn"
    ng-show="security.isAuthorized('delete', resource.path) && document._rev"
    ng-click="confirmDelete()"
    ng-disabled="deleting || saving"><md-icon>delete</md-icon> Delete</md-button>

Hide delete button on new
Hide delete button on new
