To prevent accidental deletion of backed-up, archived, or space-managed files, the server does not allow you to delete a volume that contains user data unless you specify DISCARDDATA=YES on the DELETE VOLUME command. After all files have been deleted from the volume, the server deletes the volume from the storage pool.
For example, to discard all data from volume WREN03 and delete the volume from its storage pool, enter:
delete volume wren03 discarddata=yes
The server generates a background process and deletes data in a series of batch database transactions. After all files have been deleted from the volume, the server deletes the volume from the storage pool. If the volume deletion process is canceled or if a system failure occurs, the volume might still contain data. Reissue the DELETE VOLUME command and explicitly request the server to discard the remaining files on the volume.
To delete a volume but not the files it contains, move the files to another volume. See Moving data from one volume to another volume for information about moving data from one volume to another volume.