productDelete
Permanently delete a product from the catalog.
Removes the product and all associated data from the search index and database. This action cannot be undone and will affect any references to this product in orders, carts, or other systems.
Possible errors:
- DELETE_PRODUCT_ERROR: Failed to delete the product
- PRODUCT_FETCH_ERROR: Product with the specified ID does not exist
AUTH: Role=[product.OWNER]
productDelete(
productId: Int!
): Boolean!
Arguments
productDelete.productId
● Int!
non-null scalar
Unique identifier of the product to delete.
Must be a positive integer representing a valid product ID in the system.
Type
Boolean
scalar
The Boolean
scalar type represents true
or false
.