Skip to content

no-resource-delete-operation

-
@azure-tools/typespec-azure-resource-manager/no-resource-delete-operation

Every ARM resource that provides a create operation must also provide a delete operation.

@armResourceOperations
interface EmployeeOperations {
createOrUpdate is ArmResourceCreateOrReplaceAsync<Employee>;
}
@armResourceOperations
interface EmployeeOperations {
createOrUpdate is ArmResourceCreateOrReplaceAsync<Employee>;
delete is ArmResourceDeleteWithoutOkAsync<Store>; // delete operation for a different resource
}
@armResourceOperations
interface EmployeeOperations {
createOrUpdate is ArmResourceCreateOrReplaceAsync<Employee>;
delete is ArmResourceDeleteWithoutOkAsync<Employee>;
}